import { createRouter,createWebHistory,createWebHashHistory } from 'vue-router'

const routes = [
    {
        path: '/',
        redirect:'/game'
    },
    {
        path: '/game',
        name: 'game',
        component:()=>import("@/views/Game.vue")
    },
    {
        path: '/table',
        name: 'table',
        component:()=>import("@/views/CustomTable.vue")
    },
    {
        path: '/scrollNum',
        name: 'scrollNum',
        component:()=>import("@/views/ScrollNumSample.vue")
    },
    {
        path: '/drag2Scale',
        name: 'drag2Scale',
        component:()=>import("@/views/Drag2Scale.vue")
    },
    {
        path: '/raffle',
        name: 'raffle',
        component:()=>import("@/views/Raffle.vue")
    },
    {
        path:'/snow',
        name: 'snow',
        component:()=>import("@/views/Snow.vue")
    },
    {
        path:'/iKun',
        name: 'iKun',
        component:()=>import("@/views/IKun.vue")
    },
    {
        path:'/textChoose',
        name: 'textChoose',
        component:()=>import("@/views/textChoose.vue")
    },
    {
        path:'/lightCard',
        name: 'lightCard',
        component:()=>import("@/views/lightCard.vue")
    },
    {
        path:'/roundScroll',
        name: 'roundScroll',
        component:()=>import("@/views/roundScroll.vue")
    },
    {
        path:'/card3D',
        name: 'card3D',
        component:()=>import("@/views/card3D.vue")
    },
    {
        path:'/bigScreen',
        name: 'bigScreen',
        component:()=>import("@/views/bigScreen.vue")
    },
    {
        path:'/fileReader',
        name: 'fileReader',
        component:()=>import("@/views/fileReader.vue")
    },
    {
        path:'/aiEditor',
        name: 'aiEditor',
        component:()=>import("@/views/aiEditor.vue")
    },
    {
        path:'/wangEditor',
        name: 'wangEditor',
        component:()=>import("@/views/wangEditor.vue")
    },
    {
        path:'/tinymce',
        name: 'tinymce',
        component:()=>import("@/views/tinymce.vue")
    },
    {
        path:'/xmind',
        name: 'xmind',
        component:()=>import("@/views/xmind.vue")
    },
    {
        path:'/dhtmlxGantt',
        name: 'dhtmlxGantt',
        component:()=>import("@/views/dhtmlxGantt.vue")
    },
    {
        path:'/videoPlayer',
        name: 'videoPlayer',
        component:()=>import("@/views/videoPlayer.vue")
    },
    {
        path:'/canvas',
        name: 'canvas',
        component:()=>import("@/views/canvas.vue")
    },
    {
        path:'/DrawingCanvas',
        name: 'DrawingCanvas',
        component:()=>import("@/views/DrawingCanvas.vue")
    },
    {
        path:'/ScriptEditor',
        name: 'ScriptEditor',
        component:()=>import("@/views/scriptEditor/index.vue")
    },
    {
        path:'/Sinopec',
        name: 'Sinopec',
        component:()=>import("@/views/Sinopec.vue")
    },
    {
        path:'/canvasDraw',
        name: 'canvasDraw',
        component:()=>import("@/views/canvasDraw.vue")
    },
]

const router = createRouter({
    // history: createWebHistory(),
    history:createWebHashHistory('/'),
    routes,
})

export default router;
